import request from '@/utils/request'
export function getList(params) {
    return request({
            url: '/customer/list/myIdeal',
            method: 'POST',
            data: params
        })
        .then(res => {
            return res && res.records
        })
}
export function getMyList(params) {
    return request({
            url: '/customer/list/my',
            method: 'POST',
            data: params
        })
        .then(res => {
            return res && res.records
        })
}

export function getCustomerBirthdayList(params) {
    return request({
            url: '/customer/birthday/list',
            method: 'POST',
            data: params
        })
        .then(res => {
            return res && res.records
        })
}
export function getDetail(params) {
    return request({
        url: '/customer/detail',
        method: 'POST',
        data: params
    }).then(data => data)
}
export function add(params = {}) {
    return request({
        url: '/customer/add',
        method: 'POST',
        data: params
    }).then(data => data)
}
export function edit(params = {}) {
    return request({
        url: '/customer/edit',
        method: 'POST',
        data: params
    }).then(data => data)
}